Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install Zig if the zig.path config option has been unset #400

Merged
merged 2 commits into from
Feb 22, 2025

Conversation

Techatrix
Copy link
Collaborator

The ZigProvider does not update the zig version when the zig.path has been removed because it isn't aware of the version managment system. To resolve this, the logic is moved into zigSetup.ts.

Also includes a commit that avoids unnecessarily triggering zig provider on change events.

The difference this change makes can be easily observed by editing a
build.zig.zon while using the builtin version manager. ZLS would be
restarted every time the file is edited even if it is has no
`minimum_zig_version`.
The ZigProvider does not update the zig version when the `zig.path` has
been removed because it isn't aware of the version managment system. To
resolve this, the logic is moved into zigSetup.ts
@Vexu Vexu merged commit 97ea927 into master Feb 22, 2025
2 checks passed
@Techatrix Techatrix deleted the techatrix/zig-redundant-set branch February 22, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants